package com.study.easyexcel.business.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.study.easyexcel.api.listener.HealthMonitoring;
import com.study.easyexcel.api.listener.ValidListener;
import com.study.easyexcel.business.entity.Legion;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author yuhuan
 * @date 2023/10/26
 */
public class LegionImportListener extends HealthMonitoring<Legion> implements ValidListener<Legion> {

    private static final Logger logger = LoggerFactory.getLogger(LegionImportListener.class);

    @Override
    public void invoke(Legion legion, AnalysisContext analysisContext) {
        logger.info(legion.toString());
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
